package com.itheima.health.service.impl;

import com.itheima.health.dao.MobileSetmealDao;
import com.itheima.health.pojo.Setmeal;
import com.itheima.health.service.MobileSetmealService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author dwj
 * @since 2023/4/27 11:11
 */
@Service
public class MobileSetmealServiceImpl implements MobileSetmealService {
    @Autowired
    private MobileSetmealDao mobileSetmealDao;
    //体检预约查询所有套餐
    @Override
    public List<Setmeal> getSetmeal() {
        return mobileSetmealDao.findAllSetmeal();
    }
    //体检预约功能-套餐详情
    @Override
    public Setmeal findById(Integer id) {
        return mobileSetmealDao.selectSetmealAndCheckGroupAndCheckitem(id);
    }
}
